package core.behaviors;

import core.Actor;
import core.CoreTypes;
import core.units.Unit;

public class Trash extends Behavior {

	public Trash() {
		super(CoreTypes.TRASH);
	}
	
	public void step(Actor... actors) {
		super.step();
		try {
			Unit to_trash = (Unit) actors[0];
			to_trash.trash(true);
		} catch (Exception e) {
			return; // do nothing
		}
	}

}
